import input from './components/input'
import chartBar from './components/chart-bar'
import chartLine from './components/chart-line'
import chartCircle from './components/chart-circle'
import chartCom from './components/chart-com'
import chartLineArea from './components/chart-line-area'
import chartPie from './components/chart-Pie'
import  circle from  './components/circle'
import  SquareBox from  './components/square-box/squarBox'
import caseDetail from './components/case-detail'
import caseHotlineDetail from './components/case-hotline-detail'
import matterDetail from './components/matter-detail'
import popup from './components/popup'

if (typeof window !== 'undefined' && window.Vue) {
  window.Vue.use(install)
}

function install (Vue) {
  Vue.component(input.name, input)
  Vue.component(chartBar.name, chartBar)
  Vue.component(chartLine.name, chartLine)
  Vue.component(chartCircle.name, chartCircle)
  Vue.component(chartCom.name, chartCom)
  Vue.component(chartLineArea.name, chartLineArea)
  Vue.component(chartPie.name, chartPie)
  Vue.component(caseDetail.name, caseDetail)
  Vue.component(caseHotlineDetail.name, caseHotlineDetail)
  Vue.component(matterDetail.name, matterDetail)
  Vue.component(popup.name, popup)
  Vue.component(circle.name,circle)
    Vue.component(SquareBox.name,SquareBox)
}

export default {
  install,
  input,
  circle,
  chartBar,
  chartLine,
  chartCircle,
  chartCom,
  chartLineArea,
  chartPie,
  caseDetail,
  caseHotlineDetail,
  matterDetail,
  popup,
  SquareBox

}
